<?php
class GoogleAdsPortlet extends RightSidePortlet{

	public $title="Announcements";
	public $adClientId;
	public $adSlot;
	public $width;
	public $height;

	public function init()
	{
		parent::init();
	}


	protected function OLDrenderContent()
	{
		echo <<<EOF
		<script type="text/javascript"><!--
google_ad_client = "{$this->adClientId}";
google_ad_slot = "{$this->adSlot}";
google_ad_width = {$this->width};
google_ad_height = {$this->height};
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
EOF;
	}
    
    	protected function renderContent()
	{
		echo <<<EOF
		    		<SCRIPT SRC="http://ads.jemmgroup.com/ttj?id=710374&cb=[CACHEBUSTER]&pubclick=[INSERT_CLICK_TAG]" TYPE="text/javascript"></SCRIPT>

EOF;
	}
    
    
    

}